package com.platform.servicebase.exceptionHander;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author CZF
 * @create 2022-03-02 19:07
 *
 * 自定义异常处理，便于更好定位异常
 */
@Data
@AllArgsConstructor  //有参数构造器
@NoArgsConstructor   //生成无参数构造
public class MyExceptionHandler extends RuntimeException{
    private Integer code;//状态码
    private String msg; //异常信息
}
